1
2 // This class is generated by XDoclet SDK (XGG). Do not edit!
3 package xdoclet.sdk.xtag.migrator;
4
5 /***
6 * <p>XML element: <b><parameter/></b></p>.
7 * This element exists in the following versions:
8 * <ul>
9 * <li>xtags_1_1.dtd</li>
10 * </ul>
11 *
12 * @bean.class name="parameter"
13 *
14 * @author <a href="http://xdoclet.sf.net/">XDoclet</a>
15 */
16 public final class Parameter extends xdoclet.sdk.xgg.XGGPojo {
17 /***
18 * Default constructor. Should not be called explicitly. It's available
19 * only to be able to convert xml into beans with Betwixt.
20 */
21 public Parameter() {
22 }
23
24 /***
25 * Constructor. Should only be called if the current version is of the following:
26 * <ul>
27 * <li>xtags_1_1.dtd</li>
28 * </ul>
29 * @param parent the parent element
30 * @throws java.lang.IllegalStateException if this constructor is illegal
31 * with the current version.
32 */
33 public Parameter( Tag parent ) throws java.lang.IllegalStateException {
34 // Check that it's ok to call this constructor.
35 checkVersion( new String[] { "xtags_1_1.dtd" } );
36 parent.addParameter( this );
37 }
38
39 /***
40 * <p>XML attribute: <b><type></b></p>
41 * This attribute exists in the following versions:
42 * <ul>
43 * <li>xtags_1_1.dtd</li>
44 * </ul>
45 *
46 * The cardinality is (1..1)
47 *
48 * @param type_Att the java.lang.String to add.
49 * @throws java.lang.IllegalStateException if this method is illegal
50 * with the current version.
51 */
52 public final void setType_Att( final java.lang.String type_Att ) throws java.lang.IllegalStateException {
53 // Check that it's ok to call this method.
54 checkVersion( new String[] { "xtags_1_1.dtd" } );
55
56 checkValue(type_Att, "(text|int|bool)");
57
58 // Check that it's not already set.
59 if( _type_Att != null ) {
60 throw new IllegalStateException("setType_Att(java.lang.String) has already been called with " +
61 _type_Att + ". Attempt to call it again with " + type_Att
62 );
63 }
64 _type_Att = type_Att;
65 }
66
67 /***
68 * @bean.property
69 * @bean.attribute name="betwixt.index" value="0"
70 * @bean.attribute name="betwixt.name" value="type"
71 */
72 public final java.lang.String getType_Att() {
73 return _type_Att;
74 }
75
76 private java.lang.String _type_Att;
77
78 /***
79 * <p>XML element: <a href="Xmlname.html"><name/></a></p>
80 * This element exists in the following versions:
81 * <ul>
82 * <li>xtags_1_1.dtd</li>
83 * </ul>
84 *
85 * The cardinality is (1..1)
86 *
87 * @param xmlname the Xmlname to add.
88 * @throws java.lang.IllegalStateException if this method is illegal
89 * with the current version.
90 */
91 public final void setXmlname( final Xmlname xmlname ) throws java.lang.IllegalStateException {
92 // Check that it's ok to call this method.
93 checkVersion( new String[] { "xtags_1_1.dtd" } );
94
95 // Check that it's not already set.
96 if( _xmlname != null ) {
97 throw new IllegalStateException("setXmlname(Xmlname) has already been called with " +
98 _xmlname + ". Attempt to call it again with " + xmlname
99 );
100 }
101 _xmlname = xmlname;
102 }
103
104 /***
105 * @bean.property
106 * @bean.attribute name="betwixt.index" value="1"
107 * @bean.attribute name="betwixt.name" value="name"
108 */
109 public final Xmlname getXmlname() {
110 return _xmlname;
111 }
112
113 private Xmlname _xmlname;
114
115 /***
116 * <p>XML element: <a href="UsageDescription.html"><usage-description/></a></p>
117 * This element exists in the following versions:
118 * <ul>
119 * <li>xtags_1_1.dtd</li>
120 * </ul>
121 *
122 * The cardinality is (1..1)
123 *
124 * @param usageDescription the UsageDescription to add.
125 * @throws java.lang.IllegalStateException if this method is illegal
126 * with the current version.
127 */
128 public final void setUsageDescription( final UsageDescription usageDescription ) throws java.lang.IllegalStateException {
129 // Check that it's ok to call this method.
130 checkVersion( new String[] { "xtags_1_1.dtd" } );
131
132 // Check that it's not already set.
133 if( _usageDescription != null ) {
134 throw new IllegalStateException("setUsageDescription(UsageDescription) has already been called with " +
135 _usageDescription + ". Attempt to call it again with " + usageDescription
136 );
137 }
138 _usageDescription = usageDescription;
139 }
140
141 /***
142 * @bean.property
143 * @bean.attribute name="betwixt.index" value="2"
144 * @bean.attribute name="betwixt.name" value="usage-description"
145 */
146 public final UsageDescription getUsageDescription() {
147 return _usageDescription;
148 }
149
150 private UsageDescription _usageDescription;
151
152 /***
153 * <p>XML element: <a href="Mandatory.html"><mandatory/></a></p>
154 * This element exists in the following versions:
155 * <ul>
156 * <li>xtags_1_1.dtd</li>
157 * </ul>
158 *
159 * The cardinality is (1..1)
160 *
161 * @param mandatory the Mandatory to add.
162 * @throws java.lang.IllegalStateException if this method is illegal
163 * with the current version.
164 */
165 public final void setMandatory( final Mandatory mandatory ) throws java.lang.IllegalStateException {
166 // Check that it's ok to call this method.
167 checkVersion( new String[] { "xtags_1_1.dtd" } );
168
169 // Check that it's not already set.
170 if( _mandatory != null ) {
171 throw new IllegalStateException("setMandatory(Mandatory) has already been called with " +
172 _mandatory + ". Attempt to call it again with " + mandatory
173 );
174 }
175 _mandatory = mandatory;
176 }
177
178 /***
179 * @bean.property
180 * @bean.attribute name="betwixt.index" value="3"
181 * @bean.attribute name="betwixt.name" value="mandatory"
182 */
183 public final Mandatory getMandatory() {
184 return _mandatory;
185 }
186
187 private Mandatory _mandatory;
188
189 /***
190 * <p>XML element: <a href="Xmldefault.html"><default/></a></p>
191 * This element exists in the following versions:
192 * <ul>
193 * <li>xtags_1_1.dtd</li>
194 * </ul>
195 *
196 * The cardinality is (0..1)
197 *
198 * @param xmldefault the Xmldefault to add.
199 * @throws java.lang.IllegalStateException if this method is illegal
200 * with the current version.
201 */
202 public final void setXmldefault( final Xmldefault xmldefault ) throws java.lang.IllegalStateException {
203 // Check that it's ok to call this method.
204 checkVersion( new String[] { "xtags_1_1.dtd" } );
205
206 // Check that it's not already set.
207 if( _xmldefault != null ) {
208 throw new IllegalStateException("setXmldefault(Xmldefault) has already been called with " +
209 _xmldefault + ". Attempt to call it again with " + xmldefault
210 );
211 }
212 _xmldefault = xmldefault;
213 }
214
215 /***
216 * @bean.property
217 * @bean.attribute name="betwixt.index" value="4"
218 * @bean.attribute name="betwixt.name" value="default"
219 */
220 public final Xmldefault getXmldefault() {
221 return _xmldefault;
222 }
223
224 private Xmldefault _xmldefault;
225
226 /***
227 * <p>XML element: <a href="ConditionDescription.html"><condition-description/></a></p>
228 * This element exists in the following versions:
229 * <ul>
230 * <li>xtags_1_1.dtd</li>
231 * </ul>
232 *
233 * The cardinality is (0..1)
234 *
235 * @param conditionDescription the ConditionDescription to add.
236 * @throws java.lang.IllegalStateException if this method is illegal
237 * with the current version.
238 */
239 public final void setConditionDescription( final ConditionDescription conditionDescription ) throws java.lang.IllegalStateException {
240 // Check that it's ok to call this method.
241 checkVersion( new String[] { "xtags_1_1.dtd" } );
242
243 // Check that it's not already set.
244 if( _conditionDescription != null ) {
245 throw new IllegalStateException("setConditionDescription(ConditionDescription) has already been called with " +
246 _conditionDescription + ". Attempt to call it again with " + conditionDescription
247 );
248 }
249 _conditionDescription = conditionDescription;
250 }
251
252 /***
253 * @bean.property
254 * @bean.attribute name="betwixt.index" value="5"
255 * @bean.attribute name="betwixt.name" value="condition-description"
256 */
257 public final ConditionDescription getConditionDescription() {
258 return _conditionDescription;
259 }
260
261 private ConditionDescription _conditionDescription;
262
263 /***
264 * <p>XML element: <a href="Condition.html"><condition/></a></p>
265 * This element exists in the following versions:
266 * <ul>
267 * <li>xtags_1_1.dtd</li>
268 * </ul>
269 *
270 * The cardinality is (0..1)
271 *
272 * @param condition the Condition to add.
273 * @throws java.lang.IllegalStateException if this method is illegal
274 * with the current version.
275 */
276 public final void setCondition( final Condition condition ) throws java.lang.IllegalStateException {
277 // Check that it's ok to call this method.
278 checkVersion( new String[] { "xtags_1_1.dtd" } );
279
280 // Check that it's not already set.
281 if( _condition != null ) {
282 throw new IllegalStateException("setCondition(Condition) has already been called with " +
283 _condition + ". Attempt to call it again with " + condition
284 );
285 }
286 _condition = condition;
287 }
288
289 /***
290 * @bean.property
291 * @bean.attribute name="betwixt.index" value="6"
292 * @bean.attribute name="betwixt.name" value="condition"
293 */
294 public final Condition getCondition() {
295 return _condition;
296 }
297
298 private Condition _condition;
299
300 /***
301 * <p>XML element: <a href="OptionSets.html"><option-sets/></a></p>
302 * This element exists in the following versions:
303 * <ul>
304 * <li>xtags_1_1.dtd</li>
305 * </ul>
306 *
307 * The cardinality is (0..1)
308 *
309 * @param optionSets the OptionSets to add.
310 * @throws java.lang.IllegalStateException if this method is illegal
311 * with the current version.
312 */
313 public final void setOptionSets( final OptionSets optionSets ) throws java.lang.IllegalStateException {
314 // Check that it's ok to call this method.
315 checkVersion( new String[] { "xtags_1_1.dtd" } );
316
317 // Check that it's not already set.
318 if( _optionSets != null ) {
319 throw new IllegalStateException("setOptionSets(OptionSets) has already been called with " +
320 _optionSets + ". Attempt to call it again with " + optionSets
321 );
322 }
323 _optionSets = optionSets;
324 }
325
326 /***
327 * @bean.property
328 * @bean.attribute name="betwixt.index" value="7"
329 * @bean.attribute name="betwixt.name" value="option-sets"
330 */
331 public final OptionSets getOptionSets() {
332 return _optionSets;
333 }
334
335 private OptionSets _optionSets;
336
337 }
This page was automatically generated by Maven